<!DOCTYPE HTML>
<html>
  <head>
	<?php echo Yaf_View_Simple::render("header.phtml"); ?>
  </head>
  <body>
	<?php echo Yaf_View_Simple::render("menu.phtml"); ?>
	<div class="create">
	  <div class="content">
		<form role="form" class="form-horizontal" id="beform" action="insert">
		  <fieldset>
			<div class="form-group">
			  <!-- Select Basic -->
			  <label class="control-label col-lg-2">Category:</label>
			  <div class="controls col-lg-4">
				<select name="role_id"  class="form-control">
                  <?php foreach($role as $value){ ?>
				  <option value="<?php echo $value['role_id']; ?>"><?php echo $value['role_name']; ?></option>
                  <?php } ?>
				</select>
			  </div>
			</div>
			<div class="form-group">
			  <label class="col-lg-2 control-label" for="user_name">Name:</label>
			  <div class="col-lg-4">
				<input type="text" name="user_name" class="form-control" id="user_name" />
			  </div>
			</div>
			<div class="form-group">
			  <label class="col-lg-2 control-label" for="user_password">Password</label>
			  <div class="col-lg-4">
				<input type="text" name="user_password" class="form-control" id="user_password" />
			  </div>
			</div>
		  </fieldset>
		  <div class="form-group">
		    <label class="col-lg-2 control-label"></label>
		    <div class="col-lg-6">
              <input type="submit" />
		      <a  href="javascript:def.submit('#beform',null)" class="btn btn-primary">Submit</a>
            </div>              
          </div>
          
		</form>
	        </div>
	  </div>
	  
	  <!-- 模态框（Modal） -->
	  <div class="modal fade" id="modal" tabindex="-1" role="dialog" aria-labelledby="modellabel" aria-hidden="true">
	    <div class="modal-dialog">
		  <div class="modal-content">
		    <div class="modal-header bg-default">
			  <div class="modal-title" id="modallabel">
			    <h5 class="text-primary">Signal</h5>
			  </div>
		    </div>
		    <div class="modal-body bg-primary">
			  
		    </div>
		    <div class="modal-footer">
			  <button type="button" class="btn btn-default" data-dismiss="modal">Close
			</button>
		  </div>
		</div><!-- /.modal-content -->
	  </div><!-- /.modal -->
	</div>		

	<?php echo Yaf_View_Simple::render("footer.phtml"); ?>
  </body>
</html>
